コード例 #1
0
        public void GetSpindleBeltSizeTest()
        {
            var con = new SpindleBeltSizesController();

            var result = con.GetSpindleBeltSize("H").GetAwaiter().GetResult()
                         as OkNegotiatedContentResult <SpindleBeltSize>;

            Assert.IsNotNull(result);
        }
コード例 #2
0
        public void GetSpindleBeltSizesTest()
        {
            var con      = new SpindleBeltSizesController();
            int expected = 4;

            var result = con.GetSpindleBeltSizes();

            Assert.IsNotNull(result);
            Assert.AreEqual(expected, result.Count());
        }