public void GetStringValue_Triad_ReturnsSerializedStringUsingDefaultDelimiter()
        {
            var ser = new TupleSerializer<Tuple<string, string, string>>();

            var str = ser.GetStringValue(new Tuple<string, string, string>("EUR", "EUR", "EUR"));

            Assert.Equal("EUR-EUR-EUR", str);
        }
コード例 #2
0
        public void GetStringValue_Triad_ReturnsSerializedStringUsingDefaultDelimiter()
        {
            var ser = new TupleSerializer <Tuple <string, string, string> >();

            var str = ser.GetStringValue(new Tuple <string, string, string>("EUR", "EUR", "EUR"));

            Assert.Equal("EUR-EUR-EUR", str);
        }
        public void GetStringValue_TriadWithCustomDelimiter_ReturnsSerializedStringUsingCustomDelimiter()
        {
            var ser = new TupleSerializer<Tuple<string, string, string>>()
                .SetDelimiter(":");

            var str = ser.GetStringValue(new Tuple<string, string, string>("EUR", "EUR", "EUR"));

            Assert.Equal("EUR:EUR:EUR", str);
        }
コード例 #4
0
        public void GetStringValue_TriadWithCustomDelimiter_ReturnsSerializedStringUsingCustomDelimiter()
        {
            var ser = new TupleSerializer <Tuple <string, string, string> >()
                      .SetDelimiter(":");

            var str = ser.GetStringValue(new Tuple <string, string, string>("EUR", "EUR", "EUR"));

            Assert.Equal("EUR:EUR:EUR", str);
        }