예제 #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));