public bool Equals(ProjectLoadFailureMessage other) { if (ReferenceEquals(null, other)) { return false; } if (ReferenceEquals(this, other)) { return true; } return Equals(other.ProjectToken, ProjectToken); }
public bool Equals(ProjectLoadFailureMessage other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.ProjectToken, ProjectToken)); }
protected override void beforeEach() { message = new ProjectLoadFailureMessage { ErrorMessage = "Bad Error!", ProjectToken = new ProjectToken { Filename = "somefilename", Name = "somename" } }; ClassUnderTest.HandleMessage(message); }
protected override void beforeEach() { MockFor <IProjectPersistor>().Expect(x => x.LoadFromFile(_theFileName)).Return(null); _projectToken = new ProjectToken { Filename = _theFileName }; _projectLoadFailureMessage = new ProjectLoadFailureMessage { ProjectToken = _projectToken }; _output = ClassUnderTest.LoadProject(_projectToken); }