public void ValidNickname() { NoticeCommand noticeCommand = new NoticeCommand(); try { noticeCommand.Nickname = "ç"; Assert.Fail(); } catch(ArgumentException) { } catch { Assert.Fail(); } }
public void NicknameCantBeNull() { NoticeCommand noticeCommand = new NoticeCommand(); try { noticeCommand.Nickname = null; Assert.Fail(); } catch(ArgumentNullException exception) { Assert.AreEqual("Nickname", exception.ParamName); } catch { Assert.Fail(); } }
public void NicknameProperty() { NoticeCommand noticeCommand = new NoticeCommand(); noticeCommand.Nickname = "Xpto"; Assert.AreEqual("Xpto", noticeCommand.Nickname); }