public void GetOrCreateItem_NonExistentItem_CreatesNewItem() { // Arrange var manager = new EndpointManager(); // Act var item = manager.GetOrCreateItem("abc", item => { }); // Assert item.Should().NotBeNull(); item.EndpointId.Should().Be("abc"); }
public void GetOrCreateItem_NonExistentItem_CreatesNewItem() { // Arrange var manager = new EndpointManager(); // Act var item = manager.GetOrCreateItem("abc", item => { }); // Assert Assert.NotNull(item); Assert.Equal("abc", item.EndpointId); }