public void try_get_should_return_added_option() { // arrange var options = new AnyOptions(); options.Add(new TestOption()); // act options.TryGet(out TestOption option).Should().BeTrue(); // assert option.Should().NotBeNull(); }
public void all_should_return_expected_options() { // arrange var options = new AnyOptions(); options.Add(new TestOption()); // act var all = options.All <TestOption>(); // assert all.Should().ContainItemsAssignableTo <TestOption>(); }
public void get_should_return_added_option() { // arrange var options = new AnyOptions(); options.Add(new TestOption()); // act var option = options.Get <TestOption>(); // assert option.Should().NotBeNull(); }