public static async Task GetView_GivenValidName_ReturnsNone() { var provider = new EmptyDatabaseViewProvider(); var view = provider.GetView("view_name"); var viewIsNone = await view.IsNone.ConfigureAwait(false); Assert.That(viewIsNone, Is.True); }
public static void GetView_GivenNullName_ThrowsArgumentNullException() { var provider = new EmptyDatabaseViewProvider(); Assert.That(() => provider.GetView(null), Throws.ArgumentNullException); }