示例#1
0
        public void CreateTest()
        {
            var result   = new ValueElement(5);
            var expected = "5";

            Assert.AreEqual(expected, result.ToString());
        }
示例#2
0
        public void CreatePercentage()
        {
            ValueElement actual = new ValueElement(7)
            {
                Valuetype = ValueElement.valuetype.Percentage
            };
            string expected = "7%";

            Assert.AreEqual(expected, actual.ToString());
        }
示例#3
0
        public void CreateEuro()
        {
            ValueElement result = new ValueElement(5)
            {
                Valuetype = ValueElement.valuetype.Euro
            };
            string expected = "€5";

            Assert.AreEqual(expected, result.ToString());
        }