Skip to content

Commit

Permalink
tidy up new tests (#2012)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey authored Sep 22, 2019
1 parent 8cd0b34 commit c78b3cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public async Task CanSetMaintenanceModeOff()
new UpdateMaintenanceRequest(),
EnterpriseHelper.ManagementConsolePassword);

Assert.Equal(maintenance.Status, MaintenanceModeStatus.Off);
Assert.Equal(MaintenanceModeStatus.Off, maintenance.Status);
}
}

Expand All @@ -49,7 +49,7 @@ public async Task CanSetMaintenanceModeOnNow()
new UpdateMaintenanceRequestDetails(true)),
EnterpriseHelper.ManagementConsolePassword);

Assert.Equal(maintenance.Status, MaintenanceModeStatus.On);
Assert.Equal(MaintenanceModeStatus.On, maintenance.Status);
}
}

Expand All @@ -66,7 +66,7 @@ public async Task CanScheduleMaintenanceModeOnWithDateTime()
new UpdateMaintenanceRequestDetails(true, scheduledTime)),
EnterpriseHelper.ManagementConsolePassword);

Assert.Equal(maintenance.Status, MaintenanceModeStatus.Scheduled);
Assert.Equal(MaintenanceModeStatus.Scheduled, maintenance.Status);
}
}

Expand All @@ -82,7 +82,7 @@ public async Task CanScheduleMaintenanceModeOnWithPhrase()
new UpdateMaintenanceRequestDetails(true, "tomorrow at 5pm")),
EnterpriseHelper.ManagementConsolePassword);

Assert.Equal(maintenance.Status, MaintenanceModeStatus.Scheduled);
Assert.Equal(MaintenanceModeStatus.Scheduled, maintenance.Status);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public IEnumerable<IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions disco
if (String.IsNullOrEmpty(EnterpriseHelper.ManagementConsolePassword))
return Enumerable.Empty<IXunitTestCase>();

return new[] { new XunitTestCase(diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), testMethod) };
return new[] { new XunitTestCase(diagnosticMessageSink, discoveryOptions.MethodDisplayOrDefault(), TestMethodDisplayOptions.None, testMethod) };
}
}

Expand Down

0 comments on commit c78b3cf

Please sign in to comment.