File tree 2 files changed +23
-0
lines changed
System/Runtime/CompilerServices
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 165
165
<Compile Include =" System\Reflection\TypeTests.GetMember.cs" />
166
166
<Compile Include =" System\Runtime\MemoryFailPointTests.cs" />
167
167
<Compile Include =" System\Runtime\NgenServicingAttributesTests.cs" />
168
+ <Compile Include =" System\Runtime\CompilerServices\AttributesTests.cs" />
168
169
<Compile Include =" System\Runtime\CompilerServices\ConditionalWeakTableTests.cs" />
169
170
<Compile Include =" System\Runtime\CompilerServices\StrongBoxTests.cs" />
170
171
<Compile Include =" System\Runtime\CompilerServices\RuntimeHelpersTests.cs" />
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+ // See the LICENSE file in the project root for more information.
4
+
5
+ using Xunit ;
6
+
7
+ namespace System . Runtime . CompilerServices . Tests
8
+ {
9
+ public static class AttributesTests
10
+ {
11
+ [ Fact ]
12
+ public static void TypeForwardedToAttributeTests ( )
13
+ {
14
+ string assemblyFullName = "MyAssembly" ;
15
+ var attr = new TypeForwardedFromAttribute ( assemblyFullName ) ;
16
+ Assert . Equal ( assemblyFullName , attr . AssemblyFullName ) ;
17
+
18
+ AssertExtensions . Throws < ArgumentNullException > ( "assemblyFullName" , ( ) => new TypeForwardedFromAttribute ( null ) ) ;
19
+ AssertExtensions . Throws < ArgumentNullException > ( "assemblyFullName" , ( ) => new TypeForwardedFromAttribute ( "" ) ) ;
20
+ }
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments