public void Constructor_SetsName() { const string expectedName = "Service"; var imposter = new SmtpImposter(123, expectedName); Assert.AreEqual(expectedName, imposter.Name); }
public void Constructor_SetsPort() { const int port = 123; var imposter = new SmtpImposter(port, null); Assert.AreEqual(port, imposter.Port); }
public void Constructor_AllowsNullPort() { var imposter = new SmtpImposter(null, null); Assert.AreEqual(default(int), imposter.Port); }
public void Constructor_SetsProtocol() { var imposter = new SmtpImposter(123, null); Assert.AreEqual("smtp", imposter.Protocol); }