public void ServerRoleReturnsName() { // Arrange var exptectedServerRole = ServerRole.WORKER; var endpointData = new ODataEndpointDataWithServerRole(exptectedServerRole); // Act var result = endpointData.ServerRole; // Assert Assert.AreEqual(exptectedServerRole, result); }
public void DefaultServerRoleRetunsHOST() { // Arrange var exptectedServerRole = ServerRole.HOST; var endpointData = new ODataEndpointDataWithServerRole(); // Act var result = endpointData.ServerRole; // Assert Assert.AreEqual(exptectedServerRole, result); }