예제 #1
0
        public void DeleteEmployee_UnexistedGinNumber_ReturnsFalse()
        {
            var healthDataHolder = new HealthDataHolder();

            healthDataHolder.AddEmployee("123456789", "Sophie", "36.5", false, false);
            Assert.True(!healthDataHolder.DeleteEmployee("111111"));
        }
예제 #2
0
        public void DeleteEmployee_CheckSuccess()
        {
            var healthDataHolder = new HealthDataHolder();

            healthDataHolder.AddEmployee("123456789", "Sophie", "36.5", false, false);
            healthDataHolder.DeleteEmployee("123456789");
            Assert.False(healthDataHolder.DataHolder.ContainsKey("123456789"));
        }