You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// test if <TestNFClassLibrary.ClassOnAnotherAssembly> type is present
127
+
Assert.IsNotNull(testNFLibraryModule.Types.FirstOrDefault(i =>i.FullName=="TestNFClassLibrary.ClassOnAnotherAssembly"),"TestNFClassLibrary.ClassOnAnotherAssembly type not found");
128
+
129
+
// test if <TestNFClassLibrary.IAmATypeToExclude> type is present
130
+
Assert.IsNotNull(testNFLibraryModule.Types.FirstOrDefault(i =>i.FullName=="TestNFClassLibrary.IAmATypeToExclude"),"TestNFClassLibrary.IAmATypeToExclude type not found");
131
+
132
+
// test if <TestNFClassLibrary.IAmATypeToExclude> type is to be excluded
133
+
// this is being excluded with the NFMDP_PE_ExcludeClassByName project property
134
+
Assert.IsTrue(testNFLibraryModule.Types.First(i =>i.FullName=="TestNFClassLibrary.IAmATypeToExclude").IsToExclude(),"TestNFClassLibrary.IAmATypeToExclude type is not listed to be excluded, when it should");
135
+
136
+
// test if <TestNFClassLibrary.IAmAlsoATypeToExclude> type is present
137
+
Assert.IsNotNull(testNFLibraryModule.Types.FirstOrDefault(i =>i.FullName=="TestNFClassLibrary.IAmAlsoATypeToExclude"),"TestNFClassLibrary.IAmAlsoATypeToExclude type not found");
138
+
139
+
// test if <TestNFClassLibrary.IAmAlsoATypeToExclude> type is to be excluded
140
+
// this is being excluded with the ExcludeType attribute
141
+
Assert.IsTrue(testNFLibraryModule.Types.First(i =>i.FullName=="TestNFClassLibrary.IAmAlsoATypeToExclude").IsToExclude(),"TestNFClassLibrary.IAmAlsoATypeToExclude type is not listed to be excluded, when it should");
142
+
143
+
// test if <TestNFClassLibrary.IAmAnEnumToExclude> type is present
144
+
Assert.IsNotNull(testNFLibraryModule.Types.FirstOrDefault(i =>i.FullName=="TestNFClassLibrary.IAmAnEnumToExclude"),"TestNFClassLibrary.IAmAnEnumToExclude type not found");
145
+
146
+
// test if <TestNFClassLibrary.IAmAnEnumToExclude> type is to be excluded
147
+
// this is being excluded with the ExcludeType attribute
148
+
Assert.IsTrue(testNFLibraryModule.Types.First(i =>i.FullName=="TestNFClassLibrary.IAmAnEnumToExclude").IsToExclude(),"TestNFClassLibrary.IAmAnEnumToExclude type is not listed to be excluded, when it should");
Assert.IsTrue(mscorlibModule.Types.First(i =>i.FullName=="ThisAssembly").IsToExclude(),"ThisAssembly type is not listed to be excluded, when it should");
0 commit comments