Ejemplo n.º 1
0
    public void Optimize()
    {
        var rule = new RegFileRule("test", "test", Resources.ImportTest);

        rule.Optimize();

        var value = Registry.GetValue(@"HKEY_CURRENT_USER\_Test_Import\Key", "StringValue", null);

        Assert.AreEqual("中文内容", value);
    }
Ejemplo n.º 2
0
    public void Check()
    {
        var rule = new RegFileRule("test", "test", Resources.ImportTest);

        Assert.IsTrue(rule.NeedOptimize());
    }
Ejemplo n.º 3
0
    public void CheckNoNeeded()
    {
        var rule = new RegFileRule("test", "test", Resources.Kinds);

        Assert.IsFalse(rule.NeedOptimize());
    }