コード例 #1
0
        public void Clone_CopiesIfUnknownType()
        {
            var mock = new Mock <ILaunchProfile>();

            var clone = LaunchProfile.Clone(mock.Object);

            Assert.NotSame(clone, mock.Object);
        }
コード例 #2
0
        public void Clone_DoesNotCopyIfAlreadyConcreteType()
        {
            var source = new LaunchProfile("Name", "Command");

            var clone = LaunchProfile.Clone(source);

            Assert.Same(clone, source);
        }