PageRenderTime 18ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/IronPython_Main/Languages/IronPython/Tests/interop/net/loadorder/t3b.py

#
Python | 45 lines | 11 code | 10 blank | 24 comment | 0 complexity | b973d567d8cd124207fdfaf097299fb5 MD5 | raw file
 1#####################################################################################
 2#
 3#  Copyright (c) Microsoft Corporation. All rights reserved.
 4#
 5# This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
 6# copy of the license can be found in the License.html file at the root of this distribution. If 
 7# you cannot locate the  Apache License, Version 2.0, please send an email to 
 8# ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 9# by the terms of the Apache License, Version 2.0.
10#
11# You must not remove this notice, or any other, from this software.
12#
13#
14#####################################################################################
15    
16from iptest.assert_util import *
17
18add_clr_assemblies("loadorder_3")
19
20# namespace First {
21#     public class Generic1<K, V> {
22#         public static string Flag = typeof(Generic1<,>).FullName;
23#     }
24# }
25
26import First
27
28add_clr_assemblies("loadorder_3b")
29
30# namespace Second {
31#     public class Generic2 {
32#         public static string Flag = typeof(Generic2).FullName;
33#     }
34# }
35
36import Second 
37
38AreEqual(First.Generic1[str, str].Flag, "First.Generic1`2")      
39AreEqual(Second.Generic2.Flag, "Second.Generic2")      
40
41from First import *
42from Second import *
43
44AreEqual(Generic1[str, str].Flag, "First.Generic1`2")      
45AreEqual(Generic2.Flag, "Second.Generic2")