Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-etree-24.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5abf474278e1e2181a33a0dc0d3465f8481b2c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Linq.Expressions;

public static class NotifyingProperty
{
	public static void CreateDependent<TValue> (
		Expression<Func<TValue>> property,
		Func<object> notifier,
		params Expression<Func<object>>[] dependents)
	{
	}
}

public class NotifyingPropertyTest
{
	public void CreateDependent_NotifierNull ()
	{
		int v = 0;
		NotifyingProperty.CreateDependent (() => v, null);
	}

	public void CreateDependent_DependentsNull ()
	{
		Expression<Func<object>>[] dependents = null;
		int v = 0;
		NotifyingProperty.CreateDependent (() => v, () => null, dependents);
	}

	public static void Main ()
	{
	}
}