public void TestDeserializeFromJson() { var expected = new ExposureConfiguration.GoogleDiagnosisKeysDataMappingConfiguration(); var googleDiagnosisKeysDataMappingConfiguration = Utils .ReadObjectFromJsonPath <ExposureConfiguration.GoogleDiagnosisKeysDataMappingConfiguration>(PATH_JSON); Assert.True(expected.Equals(googleDiagnosisKeysDataMappingConfiguration)); }
public void TestNotEquals() { var expected = new ExposureConfiguration.GoogleDiagnosisKeysDataMappingConfiguration { InfectiousnessWhenDaysSinceOnsetMissing = Infectiousness.None }; var googleDiagnosisKeysDataMappingConfiguration = Utils .ReadObjectFromJsonPath <ExposureConfiguration.GoogleDiagnosisKeysDataMappingConfiguration>(PATH_JSON); Assert.False(expected.Equals(googleDiagnosisKeysDataMappingConfiguration)); }