mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-14 07:41:53 +01:00
34 lines
829 B
C#
34 lines
829 B
C#
|
using NFC;
|
|||
|
using NFC.Mifare_DESFire;
|
|||
|
using NUnit.Framework;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace NFC_Test
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class MifareDESFire_Commands
|
|||
|
{
|
|||
|
private MifareDESFire _MifareDESFire;
|
|||
|
|
|||
|
[SetUp]
|
|||
|
public void SetUp()
|
|||
|
{
|
|||
|
_MifareDESFire = new MifareDESFire();
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void GetApplicationIDs()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void GenerateKeySetting1()
|
|||
|
{
|
|||
|
Assert.AreEqual(0xEF, _MifareDESFire.GenerateKeySetting1(MifareDESFire.ChangeApplicationKey.SAMEKEY, MifareDESFire.ChangeMasterKeySettings.WITHMASTERKEY, MifareDESFire.CreateDeleteFile.NOKEY, MifareDESFire.FileDirectoryAccess.NOKEY, MifareDESFire.ChangeMasterKey.CHANGEABLE));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|