public void GetItem_ItemNotFound_Null() { // Assign _fileReader.Setup(x => x.LoadXDocument(It.IsAny <string>(), It.IsAny <bool>())).Returns(XDocument.Parse("<?xml version=\"1.0\" encoding=\"utf-8\" ?><items><item name=\"FooEnum.FooItem1\" value=\"Foo\" /></items>")); _stringTable = new StringTable(_stringTableFiles, DefaultLanguage, _languageManagerProvider.Object, _fileReader.Object); // Act _stringTable.Setup(); // Act & Assert Assert.IsNull(_stringTable.GetItem("Foo")); }
public void GetItem_ItemNotFound_Null() { // Assign _fileReader.Setup(x => x.LoadXDocument(It.IsAny<string>())).Returns(XDocument.Parse("<?xml version=\"1.0\" encoding=\"utf-8\" ?><items><item name=\"FooEnum.FooItem1\" value=\"Foo\" /></items>")); _stringTable = new StringTable(_stringTableFiles, DefaultLanguage, _languageManagerProvider.Object, _fileReader.Object); // Act _stringTable.Setup(); // Act & Assert Assert.IsNull(_stringTable.GetItem("Foo")); }