public void DecimalNotationCtor()
        {
            var name = "Десятичная";

            INotation notation = new DecimalNotation();

            Assert.IsNotNull(notation);
            Assert.AreEqual(name, notation.Name);
        }
        public void SetValueIntInput()
        {
            int       value    = 10;
            string    sValue   = "10";
            INotation notation = new DecimalNotation();

            notation.SetValue(value);

            Assert.AreEqual(value, notation.ValueInt);
            Assert.AreEqual(sValue, notation.ValueString);
        }
        public void SetValueTestStringInputWrong()
        {
            int       value    = 10;
            string    sValue   = "X10";
            INotation notation = new DecimalNotation();

            bool result = notation.SetValue(sValue);

            Assert.IsFalse(result);
            Assert.AreNotEqual(value, notation.ValueInt);
            Assert.AreNotEqual(sValue, notation.ValueString);
        }