Exemple #1
0
 public void EqualsBool_SameValues_True()
 => EqualityTester.AssertEquals <JsonBool, bool>(true, true);
Exemple #2
0
 public void EqualsObject_SameValues_True()
 => EqualityTester.AssertEquals <JsonString>("test", new JsonString("test"));
Exemple #3
0
        public void EqualsJsonBool_SameInstance_True()
        {
            JsonBool obj = true;

            EqualityTester.AssertEquals(obj, obj);
        }
Exemple #4
0
 public void EqualsString_SameValues_True()
 => EqualityTester.AssertEquals <JsonString, string>("test", "test");
Exemple #5
0
        public void EqualsObject_SameInstance_True()
        {
            JsonString obj = "test";

            EqualityTester.AssertEquals <JsonString>(obj, obj);
        }
Exemple #6
0
        public void EqualsObject_SameInstance_True()
        {
            JsonObject obj = GetData();

            EqualityTester.AssertEquals <JsonObject>(obj, obj);
        }
Exemple #7
0
 public void EqualsObject_SameValuesVariation_True()
 => EqualityTester.AssertEquals <JsonObject>(GetDataVariation(), new JsonObject(GetDataVariation()));
Exemple #8
0
        public void EqualsObject_SameInstance_True()
        {
            JsonNumber obj = 1;

            EqualityTester.AssertEquals <JsonNumber>(obj, obj);
        }
Exemple #9
0
 public void EqualsDouble_SameValues_True()
 => EqualityTester.AssertEquals <JsonNumber, double>(25, 25);
Exemple #10
0
 public void EqualsJsonNumber_SameValues_True()
 => EqualityTester.AssertEquals <JsonNumber, JsonNumber>(25, 25);
Exemple #11
0
        public void EqualsJsonNumber_SameInstance_True()
        {
            JsonNumber obj = 1;

            EqualityTester.AssertEquals(obj, obj);
        }
Exemple #12
0
 public void EqualsObject_SameValues_True()
 => EqualityTester.AssertEquals <JsonNumber>(25, new JsonNumber(25));