public void TestXboxDirectoryInfoCreatesChecksExistenceBeforeCreating() { bool checkedExistence = false; ShimXboxDirectoryInfo.AllInstances.ExistsGet = info => { checkedExistence = true; return(false); }; this.shimAdapter.CreateDirectoryStringXboxPath = (systemIpAddress, path) => { Assert.IsTrue(checkedExistence); }; XboxDirectoryInfo directoryInfo = new XboxDirectoryInfo(new ShimXboxFileSystemInfoDefinition(), this.XboxConsole); directoryInfo.Create(); }