private void AssertExpectedProjectInformation(ProjectInformation projectInformation) { projectInformation.Should().NotBeNull("The API requires project information"); if (this.ExpectedProjectKey != null) { projectInformation.Key.Should().Be(this.ExpectedProjectKey, "Unexpected project key"); } }
public void SetBoundProject(ProjectInformation project) { project.Should().NotBeNull(); this.VerifyActiveSection(); this.BoundProject = project; this.BindingStateChanged?.Invoke(this, EventArgs.Empty); }