public void ShouldPushTheActionOfEachSubcontrollerIntoViewdata() { var c1 = new SubController(); var c2 = new SubController(); var attribute = new SubControllerActionToViewDataAttribute(); var controller = new TestingController(); ActionExecutingContext context = GetFilterContext(controller); context.ActionParameters["c1"] = c1; context.ActionParameters["c2"] = c2; attribute.OnActionExecuting(context); Assert.That(controller.ViewData.Get<Action>("c1"), Is.Not.Null); Assert.That(controller.ViewData.Get<Action>("c2"), Is.Not.Null); }
public void Partitions_GetWithNoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.Partitions); }
public void MoveToAnotherSite_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.MoveToAnotherSite("siteName")); }
public void MoveToAnotherSite_NullSiteName_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("siteName", () => controller.MoveToAnotherSite(null)); }
public void IPAddress_GetWithNoContext_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("hostNameOrAddress", () => controller.IPAddress); }
public void GetReplicationOperationInformation_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetReplicationOperationInformation()); }
public void GetReplicationNeighbors_EmptyPartition_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("partition", () => controller.GetReplicationNeighbors(string.Empty)); }
public void GetReplicationMetadata_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetReplicationMetadata("objectPath")); }
public void TriggerSyncReplicaFromNeighbors_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.TriggerSyncReplicaFromNeighbors("partition")); }
public void TransferRoleOwnership_InvalidRole_ThrowsInvalidEnumArgumentException(ActiveDirectoryRole role) { var controller = new SubController(); AssertExtensions.Throws <InvalidEnumArgumentException>("role", () => controller.TransferRoleOwnership(role)); }
public void TransferRoleOwnership_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.TransferRoleOwnership(ActiveDirectoryRole.NamingRole)); }
public void SyncReplicaFromAllServers_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.SyncReplicaFromAllServers("partition", SyncFromAllServersOptions.AbortIfServerUnavailable)); }
public void SyncReplicaFromAllServers_EmptyPartition_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("partition", () => controller.SyncReplicaFromAllServers(string.Empty, SyncFromAllServersOptions.AbortIfServerUnavailable)); }
public void SyncReplicaFromServer_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.SyncReplicaFromServer("partition", "sourceServer")); }
public void SyncReplicaFromServer_EmptySourceServer_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("sourceServer", () => controller.SyncReplicaFromServer("partition", string.Empty)); }
public void GetReplicationMetadata_EmptyObjectPath_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("objectPath", () => controller.GetReplicationMetadata(string.Empty)); }
void Start() { sb = GameObject.Find("Submarine").GetComponent <SubController>(); }
public void GetReplicationNeighbors_NullPartition_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("partition", () => controller.GetReplicationNeighbors(null)); }
public void CheckReplicationConsistency_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.CheckReplicationConsistency()); }
public void GetReplicationNeighbors_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetReplicationNeighbors("partition")); }
public void CurrentTime_GetWithNoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.CurrentTime); }
public void HighestCommittedUsn_GetWithNoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.HighestCommittedUsn); }
public void Forest_GetWithNoContext_ThrowsActiveDirectoryObjectNotFoundException() { var controller = new SubController(); Assert.Throws <ActiveDirectoryObjectNotFoundException>(() => controller.Forest); }
public void IsGlobalCatalog_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.IsGlobalCatalog()); }
public void EnableGlobalCatalog_NoContext_ThrowsActiveDirectoryObjectNotFoundException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.EnableGlobalCatalog()); }
public void MoveToAnotherSite_EmptySiteName_ThrowsArgumentException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentException>("siteName", () => controller.MoveToAnotherSite(string.Empty)); }
public void GetDirectorySearcher_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetDirectorySearcher()); }
public void OSVersion_GetWithNoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.OSVersion); }
public void GetReplicationConnectionFailures_NoContext_ThrowsNullReferenceException() { var controller = new SubController(); Assert.Throws <NullReferenceException>(() => controller.GetReplicationConnectionFailures()); }
public void GetReplicationMetadata_NullObjectPath_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("objectPath", () => controller.GetReplicationMetadata(null)); }
public void SyncReplicaFromServer_NullSourceServer_ThrowsArgumentNullException() { var controller = new SubController(); AssertExtensions.Throws <ArgumentNullException>("sourceServer", () => controller.SyncReplicaFromServer("partition", null)); }