public static void TestFnProperty() { Assert.AreEqual("abc", new MyStruct("abc").ToString()); Assert.AreEqual(143, new MyStruct("abc").GetHashCode()); object o = 1d; Assert.AreEqual(1d.GetHashCode(), o.GetHashCode()); Assert.AreEqual(10, MyStruct.TestMethod(10)); Func <int, int> func = MyStruct.TestMethod; Assert.AreEqual(10, func(10)); }