public void Test_MapClassesForAssembly_ShouldAlwaysResetTheClassDefCol_ShouldMapAllClassesIntheAssembly() { //---------------Set up test pack------------------- Assembly thisAssembly = typeof(FakeExtBoShouldBeLoaded).Assembly; ClassDefCol classDefCol = thisAssembly.MapClasses(); var fakeExtBO = classDefCol.FirstOrDefault(def => def.ClassName == "FakeExtBoShouldBeLoaded"); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- fakeExtBO.TypeParameter = RandomValueGenerator.GetRandomString(); ClassDefCol classDefCol2 = thisAssembly.MapClasses(); //---------------Test Result ----------------------- var fakeExtBO2 = classDefCol2.FirstOrDefault(def => def.ClassName == "FakeExtBoShouldBeLoaded"); Assert.AreNotSame(fakeExtBO2, fakeExtBO); Assert.AreNotEqual(fakeExtBO2.TypeParameter, fakeExtBO.TypeParameter); }