コード例 #1
0
        public void UniqueNameCheckNonDuplicateDeviceCategory()
        {
            var uniqueName = DeviceCategoryService.CheckForExistingDeviceCategory("Testing Device Category");

            Assert.IsNull(uniqueName);
        }
コード例 #2
0
        public void UniqueNameCheckDuplicateDeviceCategoryTest()
        {
            var uniqueName = DeviceCategoryService.CheckForExistingDeviceCategory(TestDeviceCategoryName);

            Assert.AreEqual(TestDeviceCategory.DeviceCategoryName, uniqueName.DeviceCategoryName);
        }