Example #1
0
        public void LocatorFactory_WhenCreatingNewLocatorWithIdValueOfZero_ExpectIdValueToBeSet()
        {
            var sut = LocatorFactory <MockLocator> .New(0);

            Assert.IsTrue(sut.Id == 0);
        }
Example #2
0
        public void LocatorFactory_WhenCreatingNewLocatorWithIdValueAboveZero_ExpectIdValueToBeSet()
        {
            var sut = LocatorFactory <MockLocator> .New(int.MaxValue);

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