public void NoMetadataLevelShouldReturnNoMetadataTypeOracleWhenKnobIsSet()
 {
     testSubject.GetTypeNameOracle(/*autoComputePayloadMetadataInJson*/ true).Should().BeOfType <JsonNoMetadataTypeNameOracle>();
 }
示例#2
0
 public void NoMetadataLevelShouldReturnNoMetadataTypeOracleWhenKnobIsSet()
 {
     Assert.IsType <JsonNoMetadataTypeNameOracle>(testSubject.GetTypeNameOracle());
 }
 public void NoMetadataLevelShouldReturnNoMetadataTypeOracleWhenKnobIsSet()
 {
     testSubject.GetTypeNameOracle().Should().BeOfType <JsonNoMetadataTypeNameOracle>();
 }
        public void NoMetadataLevelShouldReturnExpectedMetadataTypeOracleWhenKnobIsSet(bool alwaysAddTypeAnnotationsForDerivedTypes, Type expectedType)
        {
            JsonNoMetadataLevel testSubjectWithTypeAnnotations = new JsonNoMetadataLevel(alwaysAddTypeAnnotationsForDerivedTypes);

            Assert.IsType(expectedType, testSubjectWithTypeAnnotations.GetTypeNameOracle());
        }