Ejemplo n.º 1
0
        public void TestMethodFileChanged()
        {
            MockOnStart mos = new MockOnStart();

            mos._OnStart(new string[] { "" });
            Fail2BanEnv fEnv = mos.F2BEnvPool[@"C:\Users\mingl\AppData\Local\lxss\rootfs\etc\fail2ban"];

            fEnv.ChangeHandleTestMethod(@"C:\Users\mingl\AppData\Local\lxss\rootfs\tmp\fail2ban\fail2ban.dummy");
        }
Ejemplo n.º 2
0
        public void TestMethod_OnStart()
        {
            MockOnStart mos = new MockOnStart();

            mos._OnStart(new string[] { "" });
            var F2BEnv = mos.F2BEnvPool[@"C:\Users\mingl\AppData\Local\lxss\rootfs\etc\fail2ban"];

            Assert.AreEqual(F2BEnv.DummyFileDirectory, @"C:\Users\mingl\AppData\Local\lxss\rootfs\tmp\fail2ban");
            Assert.AreEqual(F2BEnv.DummyFileName, "fail2ban.dummy");
        }