コード例 #1
0
        public void RenameResponsible_ShouldSetNewCode()
        {
            var newCode = "Code9";
            var dut     = new Responsible("PlantA", "CodeA", "DescA");

            Assert.AreNotEqual(newCode, dut.Code);

            dut.RenameResponsible(newCode);

            Assert.AreEqual(newCode, dut.Code);
        }
コード例 #2
0
        public void RenameResponsible_ShouldOnEmptyCode()
        {
            var dut = new Responsible("PlantA", "CodeA", "DescA");

            dut.RenameResponsible(" ");
        }