コード例 #1
0
        public void DeleteKeyLocationNonExistentTest()
        {
            var target = new KeyFile();

            Assert.IsFalse(File.Exists("foo.key"));

            target.DeleteKeyLocation("foo.key");

            Assert.IsFalse(File.Exists("foo.key"));
        }
コード例 #2
0
        public void DeleteKeyLocationTest()
        {
            File.Delete("foo.key");

            var target = new KeyFile();

            target.PutKey(new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }, "foo.key");

            Assert.IsTrue(File.Exists("foo.key"));

            target.DeleteKeyLocation("foo.key");

            Assert.IsFalse(File.Exists("foo.key"));
        }
コード例 #3
0
        public void DeleteKeyLocationBlankTest()
        {
            var target = new KeyFile();

            target.DeleteKeyLocation(" \t");
        }
コード例 #4
0
        public void DeleteKeyLocationEmptyTest()
        {
            var target = new KeyFile();

            target.DeleteKeyLocation("");
        }
コード例 #5
0
        public void DeleteKeyLocationNullTest()
        {
            var target = new KeyFile();

            target.DeleteKeyLocation(null);
        }