124 references to TestRoundTripValue
Microsoft.CodeAnalysis.UnitTests (124)
ObjectSerializationTests.cs (124)
331TestRoundTripValue(new TypeWithOneMember<T>(value)); 336TestRoundTripValue(new TypeWithTwoMembers<T, S>(value1, value2)); 341TestRoundTripValue(new TypeWithManyMembers<T>(values)); 347TestRoundTripValue(123); 491TestRoundTripValue((T[])null); 492TestRoundTripValue(new T[] { }); 493TestRoundTripValue(new T[] { v1 }); 494TestRoundTripValue(new T[] { v1, v2 }); 495TestRoundTripValue(new T[] { v1, v2, v3 }); 496TestRoundTripValue(new T[] { v1, v2, v3, v4 }); 497TestRoundTripValue(new T[] { v1, v2, v3, v4, v5 }); 637TestRoundTripValue(inputBool); 646TestRoundTripValue(inputBool); 655TestRoundTripValue(true); 656TestRoundTripValue(false); 657TestRoundTripValue(Byte.MaxValue); 658TestRoundTripValue(SByte.MaxValue); 659TestRoundTripValue(Int16.MaxValue); 660TestRoundTripValue(Int32.MaxValue); 661TestRoundTripValue(Byte.MaxValue); 662TestRoundTripValue(Int16.MaxValue); 663TestRoundTripValue(Int64.MaxValue); 664TestRoundTripValue(UInt16.MaxValue); 665TestRoundTripValue(UInt32.MaxValue); 666TestRoundTripValue(UInt64.MaxValue); 667TestRoundTripValue(Decimal.MaxValue); 668TestRoundTripValue(Double.MaxValue); 669TestRoundTripValue(Single.MaxValue); 670TestRoundTripValue('X'); 671TestRoundTripValue("YYY"); 672TestRoundTripValue("\uD800\uDC00"); // valid surrogate pair 673TestRoundTripValue("\uDC00\uD800"); // invalid surrogate pair 674TestRoundTripValue("\uD800"); // incomplete surrogate pair 675TestRoundTripValue<object>(null); 676TestRoundTripValue(ConsoleColor.Cyan); 677TestRoundTripValue(EByte.Value); 678TestRoundTripValue(ESByte.Value); 679TestRoundTripValue(EShort.Value); 680TestRoundTripValue(EUShort.Value); 681TestRoundTripValue(EInt.Value); 682TestRoundTripValue(EUInt.Value); 683TestRoundTripValue(ELong.Value); 684TestRoundTripValue(EULong.Value); 685TestRoundTripValue(_testNow); 691TestRoundTripValue<Int32>(0); 692TestRoundTripValue<Int32>(1); 693TestRoundTripValue<Int32>(2); 694TestRoundTripValue<Int32>(3); 695TestRoundTripValue<Int32>(4); 696TestRoundTripValue<Int32>(5); 697TestRoundTripValue<Int32>(6); 698TestRoundTripValue<Int32>(7); 699TestRoundTripValue<Int32>(8); 700TestRoundTripValue<Int32>(9); 701TestRoundTripValue<Int32>(10); 702TestRoundTripValue<Int32>(-1); 703TestRoundTripValue<Int32>(Int32.MinValue); 704TestRoundTripValue<Int32>(Byte.MaxValue); 705TestRoundTripValue<Int32>(UInt16.MaxValue); 706TestRoundTripValue<Int32>(Int32.MaxValue); 712TestRoundTripValue<UInt32>(0); 713TestRoundTripValue<UInt32>(1); 714TestRoundTripValue<UInt32>(2); 715TestRoundTripValue<UInt32>(3); 716TestRoundTripValue<UInt32>(4); 717TestRoundTripValue<UInt32>(5); 718TestRoundTripValue<UInt32>(6); 719TestRoundTripValue<UInt32>(7); 720TestRoundTripValue<UInt32>(8); 721TestRoundTripValue<UInt32>(9); 722TestRoundTripValue<UInt32>(10); 723TestRoundTripValue<Int32>(Byte.MaxValue); 724TestRoundTripValue<Int32>(UInt16.MaxValue); 725TestRoundTripValue<Int32>(Int32.MaxValue); 731TestRoundTripValue<Int64>(0); 732TestRoundTripValue<Int64>(1); 733TestRoundTripValue<Int64>(2); 734TestRoundTripValue<Int64>(3); 735TestRoundTripValue<Int64>(4); 736TestRoundTripValue<Int64>(5); 737TestRoundTripValue<Int64>(6); 738TestRoundTripValue<Int64>(7); 739TestRoundTripValue<Int64>(8); 740TestRoundTripValue<Int64>(9); 741TestRoundTripValue<Int64>(10); 742TestRoundTripValue<Int64>(-1); 743TestRoundTripValue<Int64>(Byte.MinValue); 744TestRoundTripValue<Int64>(Byte.MaxValue); 745TestRoundTripValue<Int64>(Int16.MinValue); 746TestRoundTripValue<Int64>(Int16.MaxValue); 747TestRoundTripValue<Int64>(UInt16.MinValue); 748TestRoundTripValue<Int64>(UInt16.MaxValue); 749TestRoundTripValue<Int64>(Int32.MinValue); 750TestRoundTripValue<Int64>(Int32.MaxValue); 751TestRoundTripValue<Int64>(UInt32.MinValue); 752TestRoundTripValue<Int64>(UInt32.MaxValue); 753TestRoundTripValue<Int64>(Int64.MinValue); 754TestRoundTripValue<Int64>(Int64.MaxValue); 760TestRoundTripValue<UInt64>(0); 761TestRoundTripValue<UInt64>(1); 762TestRoundTripValue<UInt64>(2); 763TestRoundTripValue<UInt64>(3); 764TestRoundTripValue<UInt64>(4); 765TestRoundTripValue<UInt64>(5); 766TestRoundTripValue<UInt64>(6); 767TestRoundTripValue<UInt64>(7); 768TestRoundTripValue<UInt64>(8); 769TestRoundTripValue<UInt64>(9); 770TestRoundTripValue<UInt64>(10); 771TestRoundTripValue<UInt64>(Byte.MinValue); 772TestRoundTripValue<UInt64>(Byte.MaxValue); 773TestRoundTripValue<UInt64>(UInt16.MinValue); 774TestRoundTripValue<UInt64>(UInt16.MaxValue); 775TestRoundTripValue<UInt64>(Int32.MaxValue); 776TestRoundTripValue<UInt64>(UInt32.MinValue); 777TestRoundTripValue<UInt64>(UInt32.MaxValue); 778TestRoundTripValue<UInt64>(UInt64.MinValue); 779TestRoundTripValue<UInt64>(UInt64.MaxValue); 1139TestRoundTripValue(values); 1207TestRoundTripValue(oneNode); 1208TestRoundTripValue(new Node("a", new Node("b"), new Node("c"))); 1209TestRoundTripValue(new Node("x", oneNode, oneNode, oneNode, oneNode)); 1241TestRoundTripValue(graph); 1249TestRoundTripValue(graph);