public void Map_Null_Test()
        {
            IndoorDistributionExcel info = null;
            var stat = info.MapTo <IndoorDistribution>();

            Assert.IsNull(stat);
        }
        public void Map_Name_Test()
        {
            var info = new IndoorDistributionExcel {
                Name = "abc123"
            };
            var stat = info.MapTo <IndoorDistribution>();

            Assert.IsNotNull(stat);
            stat.Name.ShouldBe("abc123");
        }
示例#3
0
        public void Map_SourceType_Test()
        {
            var info = new IndoorDistributionExcel {
                SourceType = "type 1"
            };
            var stat = info.MapTo <IndoorDistribution>();

            Assert.IsNotNull(stat);
            stat.SourceType.ShouldBe("type 1");
        }