public void WhenCallingGenericGetInstanceItShouldReturnTheInstanceRegisteredForTheCall() { // Arrange var container = new ShifterContainer(); container.AddInstance("The string that should be returned."); // Act var instance = container.GetInstance <string>(); // Assert instance.Should().Be("The string that should be returned.", "because this string should be returned."); }