1
using Libplanet.Stun.Attributes;
2
using Xunit;
3

4
namespace Libplanet.Stun.Tests.Attributes
5
{
6
    public class LifetimeTest
7
    {
8
        [Fact]
9
        public void EncodeToBytes()
10 1
        {
11 1
            var attr = new Lifetime(777);
12 1
            Assert.Equal(
13 1
                new byte[]
14 1
                {
15 1
                    0x00, 0x0d, 0x00, 0x04, 0x00, 0x00, 0x03, 0x09,
16 1
                },
17 1
                attr.ToByteArray());
18 1
        }
19
    }
20
}

Read our documentation on viewing source code .

Loading