Skip to content

Commit 90b5e2a

Browse files
committed
more testing
1 parent 827a65d commit 90b5e2a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/UniGetUI.PackageEngine.Serializable.Tests/TestSerializableInstallationOptions.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void ToAndFromJsonNode(bool a, bool b, string c, string d, string e, stri
4545
}
4646

4747
[Theory]
48-
[InlineData("{}", false, false, "", "", "", "", "", "", false, false, false, "")]
48+
[InlineData("{}", false, false, "", "", "", "", "", "", false, false, false, "", false)]
4949
[InlineData("""
5050
{
5151
"SkipHashCheck": true,
@@ -57,7 +57,7 @@ public void ToAndFromJsonNode(bool a, bool b, string c, string d, string e, stri
5757
"a"
5858
]
5959
}
60-
""", true, true, "", "a", "", "", "", "lol", false, false, false, "")]
60+
""", true, true, "", "a", "", "", "", "lol", false, false, false, "", true)]
6161

6262
[InlineData("""
6363
{
@@ -71,8 +71,8 @@ public void ToAndFromJsonNode(bool a, bool b, string c, string d, string e, stri
7171
"UNKNOWN_VAL4": "hehe"
7272
}
7373
""", false, false, "", "", "", "",
74-
"", "", false, false, true, "heyheyhey")]
75-
public void FromJson(string JSON, bool hash, bool inter, string installLoc, string arg1, string arg2, string arg3, string scope, string arch, bool pre, bool admin, bool skipMin, string ver)
74+
"", "", false, false, true, "heyheyhey", true)]
75+
public void FromJson(string JSON, bool hash, bool inter, string installLoc, string arg1, string arg2, string arg3, string scope, string arch, bool pre, bool admin, bool skipMin, string ver, bool mod)
7676
{
7777
Assert.NotEmpty(JSON);
7878
var jsonContent = JsonNode.Parse(JSON);
@@ -81,6 +81,8 @@ public void FromJson(string JSON, bool hash, bool inter, string installLoc, stri
8181

8282
var list = new List<string>() { arg1, arg2, arg3 }.Where(x => x.Any());
8383

84+
Assert.Equal(mod, o2.OverrideNextLevelPrefs);
85+
Assert.Equal(mod, o2.DiffersFromDefault());
8486
Assert.Equal(hash, o2.SkipHashCheck);
8587
Assert.Equal(arch, o2.Architecture);
8688
Assert.Equal(installLoc, o2.CustomInstallLocation);

0 commit comments

Comments
 (0)