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

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

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

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

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

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