예제 #1
0
        public void GetTypeInfo_FindsById()
        {
            VersionedType result = sut.GetTypeInfo <ITestType>(new VersionedTypeId("TestTypeB", 2));

            result.Should().Be(allTypes.Single(x => x.ClrType == typeof(TestTypeBV2)));
        }
예제 #2
0
        public void GetTypeInfo_FindsByClrType()
        {
            VersionedType result = sut.GetTypeInfo <ITestType>(typeof(TestTypeA));

            result.Should().Be(allTypes.Single(x => x.ClrType == typeof(TestTypeA)));
        }