コード例 #1
0
        public void ReadWriteProperty_Value()
        {

            vCardSubproperty sub = new vCardSubproperty("NAME");

            sub.Value = "SUBVALUE";
            Assert.AreEqual(
                "SUBVALUE",
                sub.Value,
                "The Value property is not working.");

        }
コード例 #2
0
        public void ReadWriteProperty_Name()
        {

            vCardSubproperty sub = new vCardSubproperty("NAME");

            sub.Name = "SUBNAME";
            Assert.AreEqual(
                "SUBNAME",
                sub.Name,
                "The Name property is not working.");

        }
コード例 #3
0
        public void Constructor_Name()
        {

            vCardSubproperty sub = new vCardSubproperty("NAME");

            Assert.AreEqual(
                "NAME",
                sub.Name,
                "The Name property was not initialized.");

            Assert.IsNull(
                sub.Value,
                "The value should be null.");

        }
コード例 #4
0
        public void Constructor_Name_Value()
        {

            vCardSubproperty sub = new vCardSubproperty("NAME", "VALUE");

            Assert.AreEqual(
                "NAME",
                sub.Name,
                "The Name property was not initialized.");

            Assert.AreEqual(
                "VALUE",
                sub.Value,
                "The Value property was not initialized.");

        }