示例#1
0
            public void Spec02()
            {
                using (var testable = new GlobalVariablesTestable())
                {
                    var actual = testable.Model.GlobalVariables;
                    testable.Instance.GlobalVariables = "a b\tc\nd,e;f'g\"h";

                    I.Expect(actual.Count).ToBe(8);
                    I.Expect(actual.Contains("a"));
                    I.Expect(actual.Contains("h"));
                }
            }
示例#2
0
            public void Spec05()
            {
                using (var testable = new GlobalVariablesTestable())
                {
                    var actual = testable.Model.GlobalVariables;
                    actual.Add("a");
                    actual.Add("b");
                    actual.Add("c");

                    testable.Instance.GlobalVariables = null;

                    I.Expect(actual.Count).ToBe(0);
                }
            }
示例#3
0
            public void Spec01()
            {
                using (var testable = new GlobalVariablesTestable())
                {
                    var actual = testable.Model.GlobalVariables;
                    actual.Add("a");

                    testable.Instance.GlobalVariables = "a b";

                    I.Expect(actual.Count).ToBe(2);
                    I.Expect(actual.Contains("a"));
                    I.Expect(actual.Contains("b"));
                }
            }
示例#4
0
            public void Spec01()
            {
                using (var testable = new GlobalVariablesTestable())
                {
                    var globals = testable.Model.GlobalVariables;
                    globals.Add("a");
                    globals.Add("b");
                    globals.Add("c");
                    globals.Add("d");

                    var actual = testable.Instance.GlobalVariables;

                    I.Expect(actual).ToBe("a b c d");
                }
            }