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"); }
public void StaticMethods_GetInstance_Location_High() { var ex = Assert.Throws <ArgumentOutOfRangeException>(() => WordLocation.GetInstance(4)); Assert.Equal("Invalid location.\r\nParameter name: location", ex.Message); }
public void StaticMethods_GetInstance_InvalidLocation(byte location) { Assert.Throws <ArgumentOutOfRangeException>(() => WordLocation.GetInstance(location)); }
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)); }