From 6569a214bb4e6edd49c1ac4f18bb5230a86baa02 Mon Sep 17 00:00:00 2001 From: Ben Maurer Date: Sat, 22 Jan 2005 01:13:45 +0000 Subject: [PATCH] 2005-01-21 Ben Maurer * StringBuilderTest.cs (CapacityFromString): This relies on impl specific behavior. Rewrite the test. svn path=/trunk/mcs/; revision=39338 --- mcs/class/corlib/Test/System.Text/ChangeLog | 5 +++++ mcs/class/corlib/Test/System.Text/StringBuilderTest.cs | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mcs/class/corlib/Test/System.Text/ChangeLog b/mcs/class/corlib/Test/System.Text/ChangeLog index d7661a7d88d..4f1df8b45ce 100644 --- a/mcs/class/corlib/Test/System.Text/ChangeLog +++ b/mcs/class/corlib/Test/System.Text/ChangeLog @@ -1,3 +1,8 @@ +2005-01-21 Ben Maurer + + * StringBuilderTest.cs (CapacityFromString): This relies on impl + specific behavior. Rewrite the test. + 2005-01-11 Gonzalo Paniagua Javier * System.Text/StringBuilderTest.cs: new tests for capacity when the diff --git a/mcs/class/corlib/Test/System.Text/StringBuilderTest.cs b/mcs/class/corlib/Test/System.Text/StringBuilderTest.cs index 474ee48de09..8f278eaeb4c 100644 --- a/mcs/class/corlib/Test/System.Text/StringBuilderTest.cs +++ b/mcs/class/corlib/Test/System.Text/StringBuilderTest.cs @@ -446,11 +446,8 @@ namespace MonoTests.System.Text { [Test] public void CapacityFromString () { - StringBuilder sb = new StringBuilder ("hola"); - AssertEquals ("#01", 16, sb.Capacity); - - sb = new StringBuilder ("01234567890123456789"); - AssertEquals ("#02", 32, sb.Capacity); + StringBuilder sb = new StringBuilder ("hola").Append ("lala"); + AssertEquals ("#01", "holalala", sb.ToString ()); } } -- 2.11.4.GIT