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

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

            EqualityTester.AssertEquals <JsonString>(obj, obj);
        }
Пример #6
0
        public void EqualsObject_SameInstance_True()
        {
            JsonObject obj = GetData();

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

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

            EqualityTester.AssertEquals(obj, obj);
        }
Пример #12
0
 public void EqualsObject_SameValues_True()
 => EqualityTester.AssertEquals <JsonNumber>(25, new JsonNumber(25));