Skip to content

Commit

Permalink
Fix for unit test broken during last merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHawker committed Jan 17, 2023
1 parent 30fc137 commit aac5b83
Showing 1 changed file with 0 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -752,60 +752,5 @@ public void StableValueOptionsEnumValuesAreStoredAsIntegers()
}

#endregion


[DataContract]
private class ConfigurationWithSearchConditionsJA
{
[DataMember]
public SearchConditionsJA SearchConditions { get; set; }
= new SearchConditionsJA();
}

[TestMethod]
public void LoggingUpgrade_ConfigurationWithSearchConditionsJA()
{
var vault = Mock.Of<Vault>();
var rule = new EnsureLatestSerializationSettingsUpgradeRuleProxy<ConfigurationWithSearchConditionsJA>();
rule.SetReadWriteLocation(MFNamedValueType.MFConfigurationValue, "sampleNamespace", "config");
rule.SetReadWriteLocationValue(vault, @"{
""SearchConditions"": [
{
""conditionType"": ""equal"",
""expression"": {
""type"": ""propertyValue"",
""propertyDef"": ""{82490C2F-8FB2-423B-85B5-F4ADB214C0FD}"",
""indirectionLevels"": []
},
""typedValue"": {
""dataType"": ""lookup"",
""value"": {
""isNull"": true
}
}
}
]
}");

Assert.IsTrue(rule.Execute(vault));
Assert.That.AreEqualJson(@"{
""SearchConditions"": [
{
""conditionType"": ""equal"",
""expression"": {
""type"": ""propertyValue"",
""propertyDef"": ""{82490C2F-8FB2-423B-85B5-F4ADB214C0FD}""
},
""typedValue"": {
""dataType"": ""lookup"",
""value"": {
""isNull"": true
}
}
}
]
}", rule.GetReadWriteLocationValue(vault));

}
}
}

0 comments on commit aac5b83

Please sign in to comment.