public static void WritePrimitiveIImmutableStackT()
        {
            IImmutableStack <int> input = ImmutableStack.CreateRange(new List <int> {
                1, 2
            });

            string json = JsonSerializer.Serialize(input);

            Assert.Equal("[2,1]", json);

            StringIImmutableStackWrapper input2 = new StringIImmutableStackWrapper(new List <string> {
                "1", "2"
            });

            json = JsonSerializer.Serialize(input2);
            Assert.Equal(@"[""2"",""1""]", json);
        }
        public async Task WritePrimitiveIImmutableStackT()
        {
            IImmutableStack <int> input = ImmutableStack.CreateRange(new List <int> {
                1, 2
            });

            string json = await JsonSerializerWrapperForString.SerializeWrapper(input);

            Assert.Equal("[2,1]", json);

            StringIImmutableStackWrapper input2 = new StringIImmutableStackWrapper(new List <string> {
                "1", "2"
            });

            json = await JsonSerializerWrapperForString.SerializeWrapper(input2);

            Assert.Equal(@"[""2"",""1""]", json);
        }
 // Call only when testing serialization.
 public void Initialize()
 {
     MyStringIImmutableStackWrapper = new StringIImmutableStackWrapper(new List <string> {
         "Hello"
     });
 }