public static void Main()
var mockTestClass = new Mock<ITestClass>();
var result = mockTestClass.Object;
Console.WriteLine(result.Prop1);
mockTestClass.SetupGet(x=> x.Prop1).Returns("Value1");
Console.WriteLine(result.Prop1);
public interface ITestClass
string Prop1 { get; set; }
string Prop2 { get; set; }