示例#1
0
            public void ReturnsUsings()
            {
                // act
                var cmd = new UsingsCommand();

                // assert
                cmd.CommandName.ShouldEqual("usings");
            }
示例#2
0
            public void ShouldReturnNamespacesFromExecutor()
            {
                var ns = new List<string> {"System"};
                _repl.SetupGet(x => x.Namespaces).Returns(ns);

                var cmd = new UsingsCommand();
                var result = cmd.Execute(_repl.Object, null);

                result.ShouldBeSameAs(ns);
            }