コード例 #1
0
        public void AddingValuesAndDbReaderAndToString()
        {
            _model.FillFromCode(5, "inDb1", true);
            _model.FillFromCode(700, "notInDb1", true);
            _model.FillFromCode(6, "inDb2", false);
            _model.FillFromCode(701, "notInDb2", false);

            _dbReader.ReadEnumeration(_model);


            string actualCs = _model.ToCSharp();

            actualCs = actualCs.Replace(Environment.NewLine, "");
            actualCs = actualCs.Replace("\t", "");
            actualCs = actualCs.Replace(" ", "");

            string expectedCs = "inDb1=5,//inDb2=6,//inDbNew=7,";

            Assert.AreEqual(expectedCs, actualCs);
        }