Exemplo n.º 1
0
        public void NativeString4096CompareToWorks(String a, String b)
        {
            NativeString4096 aa = new NativeString4096(a);
            NativeString4096 bb = new NativeString4096(b);

            Assert.AreEqual(aa.CompareTo(bb), a.CompareTo(b));
        }
Exemplo n.º 2
0
        public void NativeString4096EqualsWorks(String a, String b)
        {
            NativeString4096 aa = new NativeString4096(a);
            NativeString4096 bb = new NativeString4096(b);

            Assert.AreEqual(aa.Equals(bb), a.Equals(b));
        }
Exemplo n.º 3
0
        public void NativeString512ToNativeString4096Works(String a)
        {
            var    b = new NativeString512(a);
            var    c = new NativeString4096(ref b);
            String d = c.ToString();

            Assert.AreEqual(a, d);
        }
Exemplo n.º 4
0
        public void NativeString4096ToStringWorks(String a)
        {
            NativeString4096 aa = new NativeString4096(a);

            Assert.AreEqual(aa.ToString(), a);
        }
 public VisitStatus Visit <TProperty, TContainer>(IPropertyVisitor visitor, TProperty property, ref TContainer container, ref NativeString4096 value, ref ChangeTracker changeTracker) where TProperty : IProperty <TContainer, NativeString4096>
 {
     Append(property, value.ToString(), (builder, v) => { builder.Append(EncodeJsonString(v.ToString())); });
     return(VisitStatus.Override);
 }