GetTypes() public method

public GetTypes ( ) : List
return List
示例#1
0
        public void GetTypes_ThreeType_ExpectsTypesReturnedInList()
        {
            Signal <int, string, float> signal = new Signal <int, string, float>();

            var actual = signal.GetTypes();

            var expected = this.GetThreeExpectedTypes();

            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void GetTypes_FourType_ExpectsTypesReturnedInList()
        {
            Signal <int, string, float, Signal> signal = new Signal <int, string, float, Signal>();

            var actual = signal.GetTypes();

            var expected = this.GetThreeExpectedTypes();

            expected.Add(typeof(Signal));
            Assert.AreEqual(expected, actual);
        }