/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
- #####################################################################################
- #
- # Copyright (c) Microsoft Corporation. All rights reserved.
- #
- # This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- # copy of the license can be found in the License.html file at the root of this distribution. If
- # you cannot locate the Apache License, Version 2.0, please send an email to
- # ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
- # by the terms of the Apache License, Version 2.0.
- #
- # You must not remove this notice, or any other, from this software.
- #
- #
- #####################################################################################
-
- from iptest.assert_util import *
-
- add_clr_assemblies("loadorder_3")
-
- # namespace First {
- # public class Generic1<K, V> {
- # public static string Flag = typeof(Generic1<,>).FullName;
- # }
- # }
-
- import First
-
- add_clr_assemblies("loadorder_3b")
-
- # namespace Second {
- # public class Generic2 {
- # public static string Flag = typeof(Generic2).FullName;
- # }
- # }
-
- import Second
-
- AreEqual(First.Generic1[str, str].Flag, "First.Generic1`2")
- AreEqual(Second.Generic2.Flag, "Second.Generic2")
-
- from First import *
- from Second import *
-
- AreEqual(Generic1[str, str].Flag, "First.Generic1`2")
- AreEqual(Generic2.Flag, "Second.Generic2")