From d4697f5314046d68ab224274c8050c0df1b9e683 Mon Sep 17 00:00:00 2001 From: lmolkova Date: Sat, 13 Jul 2019 19:21:24 -0700 Subject: [PATCH] rebase issues --- .../Impl/Trace/AttributeValueTest.cs | 81 ------------------- 1 file changed, 81 deletions(-) delete mode 100644 test/OpenTelemetry.Tests/Impl/Trace/AttributeValueTest.cs diff --git a/test/OpenTelemetry.Tests/Impl/Trace/AttributeValueTest.cs b/test/OpenTelemetry.Tests/Impl/Trace/AttributeValueTest.cs deleted file mode 100644 index ab28fce1566..00000000000 --- a/test/OpenTelemetry.Tests/Impl/Trace/AttributeValueTest.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -// Copyright 2018, OpenTelemetry Authors -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -namespace OpenTelemetry.Trace.Test -{ - using Xunit; - - public class AttributeValueTest - { - - [Fact] - public void StringAttributeValue() - { - var attribute = AttributeValue.Create("MyStringAttributeValue"); - attribute.Apply((stringValue) => - { - Assert.Equal("MyStringAttributeValue", stringValue); - return null; - }); - } - - [Fact] - public void BooleanAttributeValue() - { - var attribute = AttributeValue.Create(true); - attribute.Apply((boolValue) => - { - Assert.True(boolValue); - return null; - }); - } - - [Fact] - public void LongAttributeValue() - { - var attribute = AttributeValue.Create(123456L); - attribute.Apply((longValue) => - { - Assert.Equal(123456L, longValue); - return null; - }); - } - - [Fact] - public void DoubleAttributeValue() - { - var attribute = AttributeValue.Create(0.005); - attribute.Apply((val) => - { - Assert.Equal(0.005, val); - return null; - }); - } - - [Fact] - public void AttributeValue_ToString() - { - var attribute = AttributeValue.Create("MyStringAttributeValue"); - Assert.Contains("MyStringAttributeValue", attribute.ToString()); - var attribute2 = AttributeValue.Create(true); - Assert.Contains("True", attribute2.ToString()); - var attribute3 = AttributeValue.Create(123456L); - Assert.Contains("123456", attribute3.ToString()); - } - } -} - -