public void HabbitValidationValidNamePrefix() { var habbit = new Habbit(); var name = "abc"; Assert.IsTrue(habbit.Add(name).Equals("Привычка: " + name)); }
public void HabbitValidationMinLength() { Assert.Throws<ArgumentException>(() => { var habbit = new Habbit(); habbit.Add("1"); } ); }
public void HabbitValidationValidName() { Assert.DoesNotThrow(() => { var habbit = new Habbit(); habbit.Add("Abc"); } ); }
public void HabbitValidationEmptyName() { Assert.Throws<ArgumentException>(()=> { var habbit = new Habbit(); habbit.Add(""); } ); }