Example #1
0
        public void CanCompareNone()
        {
            IdString a = new IdString("ss");
            IdString b = new IdString("");

            Assert.AreNotEqual(a, b);
        }
Example #2
0
        public void CanCompareAndFail()
        {
            IdString a = new IdString("ss");
            IdString b = new IdString("nn");

            Assert.AreNotEqual(a, b);
        }
Example #3
0
        public void CanCompareAndSucceed()
        {
            IdString a = new IdString("ss");
            IdString b = new IdString("ss");

            Assert.AreEqual(a, b);
        }
Example #4
0
        public void CreateManyIdStrings()
        {
            IdString a = new IdString("ss");
            IdString b = new IdString("ii");

            Assert.IsFalse(a.IsNone());
            Assert.IsFalse(b.IsNone());
        }
Example #5
0
        public void CanBeCopied()
        {
            IdString a = new IdString("ss");
            IdString b = a;

            Assert.IsFalse(a.IsNone());
            Assert.IsFalse(b.IsNone());

            IdString c = "";

            b = c;
            Assert.IsTrue(c.IsNone());
            Assert.IsTrue(b.IsNone());
        }
Example #6
0
        public void CanBeNone()
        {
            IdString a = new IdString("");

            Assert.IsTrue(a.IsNone());
        }
Example #7
0
        public void CreateOneIdString()
        {
            IdString a = new IdString("ss");

            Assert.IsFalse(a.IsNone());
        }
Example #8
0
        public void CanGetString()
        {
            IdString a = new IdString("ss");

            Assert.AreEqual("ss", (string)a);
        }