コード例 #1
0
        public void GetNonSafeNameAsEmpty()
        {
            IValidColumns sut = new ValidColumns(new [] { "Good_Column" });

            var result = sut.GetColumn("Bad_Column");

            Assert.Equal(string.Empty, result);
        }
コード例 #2
0
        public void GetSafeName()
        {
            IValidColumns sut = new ValidColumns(new [] { "Good_Column" });

            var result = sut.GetColumn("Good_Column");

            Assert.Equal("Good_Column", result);
        }