示例#1
0
        public void ExistsOnServer__True_When_Library_Is_Shared()
        {
            sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity");
            sparkObject.Library = Library.Shared;

            Assert.IsTrue(sparkObject.ExistsOnServer);
        }
示例#2
0
        public void ExistsOnServer__False_When_Library_Is_Client()
        {
            sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity");
            sparkObject.Library = Library.Client;

            Assert.IsFalse(sparkObject.ExistsOnServer);
        }
示例#3
0
        public void ExistsOnClient__True_When_Library_Is_Client()
        {
            sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity");
            sparkObject.Library = Library.Client;

            Assert.IsTrue(sparkObject.ExistsOnClient);
        }
示例#4
0
        public void QualifiedName__Defaults_To_The_Name_Of_The_Object()
        {
            sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Actor");

            Assert.AreEqual("Actor", sparkObject.QualifiedName);
        }
示例#5
0
        public void Library__Defaults_To_Shared()
        {
            sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity");

            Assert.AreEqual(Library.Shared, sparkObject.Library);
        }
示例#6
0
 public void SetUp()
 {
     sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity");
 }