public void TestGetStringException() { var loader = StringLoader.Instance(); Action action = () => loader.GetString("foo"); Assert.AreEqual(action, Throws.TypeOf <Exception>()); }
public void TestReadingStrings() { var testStream = new MemoryStream(Encoding.ASCII.GetBytes("FooString = \"AString\"")); var loader = StringLoader.Instance(); loader.LoadStrings(testStream); Assert.AreEqual(loader.GetString("FooString"), "AString"); }