-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDataTests.cs
More file actions
24 lines (22 loc) · 862 Bytes
/
DataTests.cs
File metadata and controls
24 lines (22 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2022, salesforce.com, inc.
// All rights reserved.
// SPDX-License-Identifier: Apache-2.0
// For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/Apache-2.0
namespace Sage.Engine.Tests.Functions
{
internal class DataTests : FunctionTestBase
{
[Test]
public void Lookup()
{
var emailAddress = this._runtimeContext.LOOKUP("Loyalty", "EmailAddress", "SubscriberKey", "1");
Assert.That(emailAddress, Is.EqualTo("donnie@northerntrailoutfitters.com"));
}
[Test]
public void LookupWithSpaceHeader()
{
var emailAddress = this._runtimeContext.LOOKUP("Loyalty", "EmailAddress", "First Name", "donnie");
Assert.That(emailAddress, Is.EqualTo("donnie@northerntrailoutfitters.com"));
}
}
}