Exemplo n.º 1
0
        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();
        }