CSLA.NET
6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Macros
Pages
NameValueListTests.cs
Go to the documentation of this file.
1
//-----------------------------------------------------------------------
2
// <copyright file="NameValueListTests.cs" company="Marimer LLC">
3
// Copyright (c) Marimer LLC. All rights reserved.
4
// Website: https://cslanet.com
5
// </copyright>
6
// <summary>no summary</summary>
7
//-----------------------------------------------------------------------
8
using
Csla
;
9
using
Csla
.
DataPortalClient
;
10
using
Csla
.
Testing
.
Business
.
ReadOnlyTest
;
11
using
System;
12
using
UnitDriven
;
13
14
#if NUNIT
15
using
NUnit.Framework;
16
using
TestClass = NUnit.Framework.TestFixtureAttribute;
17
using
TestInitialize = NUnit.Framework.SetUpAttribute;
18
using
TestCleanup = NUnit.Framework.TearDownAttribute;
19
using
TestMethod = NUnit.Framework.TestAttribute;
20
using
TestSetup = NUnit.Framework.SetUpAttribute;
21
#elif MSTEST
22
using
Microsoft
.VisualStudio.TestTools.UnitTesting;
23
#endif
24
25
namespace
cslalighttest.NameValueList
26
{
27
[TestClass]
28
public
class
NameValueListTests
:
TestBase
29
{
30
[TestMethod]
31
public
void
TestNameValueList
()
32
{
33
BasicNameValueList
list =
BasicNameValueList
.
GetBasicNameValueList
();
34
Assert.AreEqual(10, list.Count,
"Items are not caught via fetch"
);
35
Assert.AreEqual(
"element_2"
, list.
GetItemByKey
(2).Value,
"NameValue collection fetch failed."
);
36
}
37
}
38
}
Csla.NameValueListBase.GetItemByKey
NameValuePair GetItemByKey(K key)
Get the item for the first matching key in the collection.
Definition:
NameValueListBase.cs:129
UnitDriven.TestBase
Definition:
TestBase.cs:10
cslalighttest.NameValueList.BasicNameValueList
Definition:
BasicNameValueList.cs:15
cslalighttest.NameValueList.BasicNameValueList.GetBasicNameValueList
static BasicNameValueList GetBasicNameValueList()
Definition:
BasicNameValueList.cs:16
cslalighttest.NameValueList.NameValueListTests
Definition:
NameValueListTests.cs:29
cslalighttest.NameValueList.NameValueListTests.TestNameValueList
void TestNameValueList()
Definition:
NameValueListTests.cs:31
Csla.DataPortalClient
Definition:
Csla/DataPortalClient/DataPortalFactory.cs:11
Csla.Testing.Business.ReadOnlyTest
Definition:
Fakes/Server/ReadOnlyTests/ReadOnlyPerson.cs:11
Csla.Testing.Business
Definition:
Fakes/Server/BusyStatus/ItemWithAsynchRule.cs:20
Csla.Testing
Definition:
Fakes/Server/BusyStatus/ItemWithAsynchRule.cs:20
Csla
Definition:
BusinessRuleCases.cs:5
Microsoft
Definition:
ServiceCollectionExtensions.cs:17
UnitDriven
Definition:
Asserter.cs:13
cslalighttest.NameValueList
Definition:
NameValueListTests.cs:26
Generated by
1.9.2