Definition at line 11 of file DbConfigTest.cs.
void Deveel.Data.Control.DbConfigTest.CreateControllerWithoutConfig |
( |
| ) |
|
|
inline |
Definition at line 13 of file DbConfigTest.cs.
14 Assert.DoesNotThrow(() => DbController.Create());
void Deveel.Data.Control.DbConfigTest.LoadTest |
( |
| ) |
|
|
inline |
Definition at line 18 of file DbConfigTest.cs.
19 StringBuilder sb =
new StringBuilder();
20 StringWriter writer =
new StringWriter(sb);
22 writer.WriteLine(
"key1=value1");
23 writer.WriteLine(
"key2 = on");
24 writer.WriteLine(
"key3= true");
27 MemoryStream stream =
new MemoryStream(Encoding.GetEncoding(
"ISO-8859-1").GetBytes(sb.ToString()));
29 DbConfig config = DbConfig.Empty;
32 string value = config.GetValue<
string>(
"key1");
33 Assert.IsNotNull(value,
"The 'key1' was not set into the config.");
34 Assert.IsNotEmpty(value,
"The value of 'key1' is empty.");
35 Assert.AreEqual(
"value1", value,
"The value for 'key1' is not correct.");
37 value = config.GetValue<
string>(
"key2");
38 Assert.IsNotNull(value,
"The 'key2' was not set into the config.");
39 Assert.IsNotEmpty(value,
"The value of 'key2' is empty.");
40 Assert.AreEqual(
"on", value,
"The value for 'key2' is not correct.");
42 value = config.GetValue<
string>(
"key3");
43 Assert.IsNotNull(value,
"The 'key3' was not set into the config.");
44 Assert.IsNotEmpty(value,
"The value of 'key3' is empty.");
45 Assert.AreEqual(
"true", value,
"The value for 'key1' is not correct.");
void Deveel.Data.Control.DbConfigTest.SaveToTest |
( |
| ) |
|
|
inline |
Definition at line 49 of file DbConfigTest.cs.
50 DbConfig config = DbConfig.Empty;
51 config.SetValue(
"key1",
"value1");
52 config.SetValue(
"key2",
"on");
53 config.SetValue(
"key3",
"true");
55 MemoryStream stream =
new MemoryStream();
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Control/DbConfigTest.cs