public void LocatorFactory_WhenCreatingNewLocatorWithIdValueOfZero_ExpectIdValueToBeSet() { var sut = LocatorFactory <MockLocator> .New(0); Assert.IsTrue(sut.Id == 0); }
public void LocatorFactory_WhenCreatingNewLocatorWithIdValueAboveZero_ExpectIdValueToBeSet() { var sut = LocatorFactory <MockLocator> .New(int.MaxValue); Assert.IsTrue(sut.Id == int.MaxValue); }
public void LocatorFactory_WhenCreatingNewLocatorWithIdValueBelowZero_ExpectException() { var _ = LocatorFactory <MockLocator> .New(-1); }