public void ReturnsServerConfiguration() { ServerLocation[] servers = new ServerLocation[] { serverLocation, otherServerLocation }; configurationMock.SetupGet(_configuration => _configuration.Servers).Returns(servers).Verifiable(); IServerSpecifier specifier = managerWrapper.GetServerConfiguration("myserver"); Assert.AreEqual(true, specifier.AllowForceBuild); VerifyAll(); }
public void ReturnsServerConfiguration() { ServerLocation[] servers = new ServerLocation[] { serverLocation, otherServerLocation }; configurationMock.ExpectAndReturn("Servers", servers); IServerSpecifier specifier = managerWrapper.GetServerConfiguration("myserver"); Assert.AreEqual(true, specifier.AllowForceBuild); VerifyAll(); }