Example #1
0
        public void NewEVP_IdMethodTest()
        {
            var _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);
            var _EVP_Id2 = ChargingPool_Id.Random(EVSEOperatorId);

            Assert.AreNotEqual(_EVP_Id1, _EVP_Id2);
        }
Example #2
0
        public void EqualsNonEVP_IdTest()
        {
            var _EVP_Id = ChargingPool_Id.Random(EVSEOperatorId);
            var _Object = "123";

            Assert.IsFalse(_EVP_Id.Equals(_Object));
        }
Example #3
0
        public void op_BiggerOrEqual_Null_Test2()
        {
            ChargingPool_Id _EVP_Id1 = null;
            var             _EVP_Id2 = ChargingPool_Id.Random(EVSEOperatorId);

            Assert.Throws <ArgumentNullException>(() => { var x = _EVP_Id1 >= _EVP_Id2; });
        }
Example #4
0
        public void CompareToNonEVP_IdTest()
        {
            var _EVP_Id = ChargingPool_Id.Random(EVSEOperatorId);
            var _Object = "123";

            Assert.Throws <ArgumentNullException>(() => { var x = _EVP_Id.CompareTo(_Object); });
        }
Example #5
0
        public void op_Bigger_Null_Test1()
        {
            var             _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);
            ChargingPool_Id _EVP_Id2 = null;

            Assert.Throws <ArgumentNullException>(() => { var x = _EVP_Id1 > _EVP_Id2; });
        }
Example #6
0
        public void op_Inequality_Null_Test2()
        {
            ChargingPool_Id _EVP_Id1 = null;
            var             _EVP_Id2 = ChargingPool_Id.Random(EVSEOperatorId);

            Assert.IsTrue(_EVP_Id1 != _EVP_Id2);
        }
Example #7
0
        public void op_Equality_Null_Test1()
        {
            var             _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);
            ChargingPool_Id _EVP_Id2 = null;

            Assert.IsFalse(_EVP_Id1 == _EVP_Id2);
        }
Example #8
0
        public void EqualsNullTest2()
        {
            var             _EVP_Id = ChargingPool_Id.Random(EVSEOperatorId);
            ChargingPool_Id _Object = null;

            Assert.IsFalse(_EVP_Id.Equals(_Object));
        }
Example #9
0
        public void op_BiggerOrEqual_SameReference_Test()
        {
            var _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);

            #pragma warning disable
            Assert.IsTrue(_EVP_Id1 >= _EVP_Id1);
            #pragma warning restore
        }
Example #10
0
        public void op_Smaller_SameReference_Test()
        {
            var _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);

            #pragma warning disable
            Assert.IsFalse(_EVP_Id1 < _EVP_Id1);
            #pragma warning restore
        }
Example #11
0
        public void EVP_IdEVP_IdConstructorTest()
        {
            var _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);
            var _EVP_Id2 = _EVP_Id1.Clone;

            Assert.AreEqual(_EVP_Id1.ToString(), _EVP_Id2.ToString());
            Assert.AreEqual(_EVP_Id1.Length, _EVP_Id2.Length);
            Assert.AreEqual(_EVP_Id1, _EVP_Id2);
        }
Example #12
0
        public void EVP_IdEmptyConstructorTest()
        {
            var _EVP_Id1 = ChargingPool_Id.Random(EVSEOperatorId);
            var _EVP_Id2 = ChargingPool_Id.Random(EVSEOperatorId);

            Assert.IsTrue(_EVP_Id1.Length > 0);
            Assert.IsTrue(_EVP_Id2.Length > 0);
            Assert.AreNotEqual(_EVP_Id1, _EVP_Id2);
        }