public void TestUnicode() { const string expected = "foo\u00e9"; PyObject actual = new PyAnsiString(expected); Assert.AreEqual(expected, actual.ToString()); }
public void TestEmptyStringCtor() { const string expected = ""; var actual = new PyAnsiString(expected); Assert.AreEqual(expected, actual.ToString()); }
public void TestPyObjectCtor() { const string expected = "Foo"; var t = new PyAnsiString(expected); var actual = new PyAnsiString(t); Assert.AreEqual(expected, actual.ToString()); }
public void TestCtorPtr() { const string expected = "foo"; var t = new PyAnsiString(expected); var actual = new PyAnsiString(t.Handle); Assert.AreEqual(expected, actual.ToString()); }