public void NoMetadataLevelShouldReturnNoMetadataTypeOracleWhenKnobIsSet() { testSubject.GetTypeNameOracle(/*autoComputePayloadMetadataInJson*/ true).Should().BeOfType <JsonNoMetadataTypeNameOracle>(); }
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()); }