|  | using System; | 
|  | using System.Text; | 
|  | using System.Collections.Generic; | 
|  | using System.Linq; | 
|  | using Microsoft.VisualStudio.TestTools.UnitTesting; | 
|  | using OfficeOpenXml.FormulaParsing.Excel.Functions; | 
|  | using OfficeOpenXml.FormulaParsing.Excel; | 
|  |  | 
|  | namespace EPPlusTest.Excel.Functions | 
|  | { | 
|  | [TestClass] | 
|  | public class FunctionArgumentTests | 
|  | { | 
|  | [TestMethod] | 
|  | public void ShouldSetExcelState() | 
|  | { | 
|  | var arg = new FunctionArgument(2); | 
|  | arg.SetExcelStateFlag(ExcelCellState.HiddenCell); | 
|  | Assert.IsTrue(arg.ExcelStateFlagIsSet(ExcelCellState.HiddenCell)); | 
|  | } | 
|  |  | 
|  | [TestMethod] | 
|  | public void ExcelStateFlagIsSetShouldReturnFalseWhenNotSet() | 
|  | { | 
|  | var arg = new FunctionArgument(2); | 
|  | Assert.IsFalse(arg.ExcelStateFlagIsSet(ExcelCellState.HiddenCell)); | 
|  | } | 
|  | } | 
|  | } |