Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-addins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorlluis <@192.168.1.100>2011-02-08 21:19:10 +0300
committerlluis <@192.168.1.100>2011-02-08 21:19:10 +0300
commit4c41477f6a4903bfc49c53e66610b5578f8fe9c2 (patch)
treea4e2aca180c7af84f847506bcd852452318ed4d0 /Test
parent54e0632ca4e8334b7824335d4b3493ffc6ddb0b3 (diff)
Added an overload for setting properties without a locale
Diffstat (limited to 'Test')
-rw-r--r--Test/UnitTests/TestAddinDescription.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/UnitTests/TestAddinDescription.cs b/Test/UnitTests/TestAddinDescription.cs
index 6e6b54e..731b480 100644
--- a/Test/UnitTests/TestAddinDescription.cs
+++ b/Test/UnitTests/TestAddinDescription.cs
@@ -56,14 +56,14 @@ namespace UnitTests
{
AddinDescription desc = new AddinDescription ();
- desc.Properties.SetPropertyValue ("prop1", null, "val1");
+ desc.Properties.SetPropertyValue ("prop1", "val1");
Assert.AreEqual ("val1", desc.Properties.GetPropertyValue ("prop1"));
Assert.AreEqual ("val1", desc.Properties.GetPropertyValue ("prop1", "en"));
Assert.AreEqual ("val1", desc.Properties.GetPropertyValue ("prop1", "en-US"));
Assert.AreEqual ("val1", desc.Properties.GetPropertyValue ("prop1", "en_US"));
Assert.AreEqual ("val1", desc.Properties.GetPropertyValue ("prop1", null));
- desc.Properties.SetPropertyValue ("prop2", "ca", "valCa");
+ desc.Properties.SetPropertyValue ("prop2", "valCa", "ca");
Assert.AreEqual ("valCa", desc.Properties.GetPropertyValue ("prop2"));
Assert.AreEqual ("valCa", desc.Properties.GetPropertyValue ("prop2", "ca"));
Assert.AreEqual ("valCa", desc.Properties.GetPropertyValue ("prop2", "ca-ES"));
@@ -75,7 +75,7 @@ namespace UnitTests
Assert.IsEmpty (desc.Properties.GetPropertyValue ("prop2", "en_US"));
Assert.IsEmpty (desc.Properties.GetPropertyValue ("prop2", null));
- desc.Properties.SetPropertyValue ("prop2", "ca_ES", "valCaEs");
+ desc.Properties.SetPropertyValue ("prop2", "valCaEs", "ca_ES");
Assert.AreEqual ("valCaEs", desc.Properties.GetPropertyValue ("prop2"));
Assert.AreEqual ("valCa", desc.Properties.GetPropertyValue ("prop2", "ca"));
Assert.AreEqual ("valCaEs", desc.Properties.GetPropertyValue ("prop2", "ca-ES"));
@@ -87,7 +87,7 @@ namespace UnitTests
Assert.IsEmpty (desc.Properties.GetPropertyValue ("prop2", "en_US"));
Assert.IsEmpty (desc.Properties.GetPropertyValue ("prop2", null));
- desc.Properties.SetPropertyValue ("prop2", null, "val4");
+ desc.Properties.SetPropertyValue ("prop2", "val4", null);
Assert.AreEqual ("valCaEs", desc.Properties.GetPropertyValue ("prop2"));
Assert.AreEqual ("valCa", desc.Properties.GetPropertyValue ("prop2", "ca"));
Assert.AreEqual ("valCaEs", desc.Properties.GetPropertyValue ("prop2", "ca-ES"));