static IProjectPropertyOccurrence FakeOccurrence(string location, IProjectPropertyCondition condition = null)
        {
            var occurrence = A.Fake <IProjectPropertyOccurrence>();

            var loc = A.Fake <IProjectLocation>();

            A.CallTo(() => loc.ToString()).Returns(location);

            A.CallTo(() => occurrence.Location).Returns(loc);

            A.CallTo(() => occurrence.Condition).Returns(condition);

            return(occurrence);
        }
Beispiel #2
0
 public ProjectPropertyOccurrence(string value, [CanBeNull] IProjectPropertyCondition condition, IProjectLocation location)
 {
     Value     = value;
     Condition = condition;
     Location  = location;
 }