Skip to content

Commit

Permalink
Reflection - add Unit test to Reflector class #132
Browse files Browse the repository at this point in the history
- ReflectorConstructorTest fails because only public types are reflected.
- 👍
  • Loading branch information
mpostol committed Jan 8, 2019
1 parent c0bcd33 commit e032d9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AdaptiveProgramming/ReflectionUnitTest/ReflectorUnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ public void ReflectorConstructorTest()
FileInfo _fileInfo = new FileInfo(ReflectorTestClass.TestAssemblyName);
Assert.IsTrue(_fileInfo.Exists);
Assert.IsNotNull(ReflectorTestClass.Reflector);
Assert.AreEqual<int>(2, ReflectorTestClass.Reflector.Namespaces.Count);
Assert.IsNotNull(ReflectorTestClass.Reflector.MyNamespace);
Assert.Inconclusive("Nor all types are processed - test fails.");
Assert.AreEqual<int>(4, ReflectorTestClass.Reflector.Namespaces.Count);
}
[TestMethod]
public void AssemblyNameTest()
Expand Down

0 comments on commit e032d9a

Please sign in to comment.