public void ExistsOnServer__True_When_Library_Is_Shared() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity"); sparkObject.Library = Library.Shared; Assert.IsTrue(sparkObject.ExistsOnServer); }
public void ExistsOnServer__False_When_Library_Is_Client() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity"); sparkObject.Library = Library.Client; Assert.IsFalse(sparkObject.ExistsOnServer); }
public void ExistsOnClient__True_When_Library_Is_Client() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity"); sparkObject.Library = Library.Client; Assert.IsTrue(sparkObject.ExistsOnClient); }
public void QualifiedName__Defaults_To_The_Name_Of_The_Object() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Actor"); Assert.AreEqual("Actor", sparkObject.QualifiedName); }
public void Library__Defaults_To_Shared() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity"); Assert.AreEqual(Library.Shared, sparkObject.Library); }
public void SetUp() { sparkObject = MockRepository.GeneratePartialMock<SparkObject>("Entity"); }