public void StaticMethods_GetInstance_InvalidLocation(byte location)
 {
     WordLocation.GetInstance(location);
 }
 public void StaticMethods_GetInstance()
 {
     Assert.AreEqual(WordLocation.Title, WordLocation.GetInstance(1), "Wrong instance");
     Assert.AreEqual(WordLocation.Keywords, WordLocation.GetInstance(2), "Wrong instance");
     Assert.AreEqual(WordLocation.Content, WordLocation.GetInstance(3), "Wrong instance");
 }
Example #3
0
        public void StaticMethods_GetInstance_Location_High()
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(() => WordLocation.GetInstance(4));

            Assert.Equal("Invalid location.\r\nParameter name: location", ex.Message);
        }
Example #4
0
 public void StaticMethods_GetInstance_InvalidLocation(byte location)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => WordLocation.GetInstance(location));
 }
Example #5
0
 public void StaticMethods_GetInstance()
 {
     Assert.Equal(WordLocation.Title, WordLocation.GetInstance(1));
     Assert.Equal(WordLocation.Keywords, WordLocation.GetInstance(2));
     Assert.Equal(WordLocation.Content, WordLocation.GetInstance(3));
 }